const db = require('../../../libs/db.config');

module.exports = async (data) => {
    const userID = data;
    const searchSQL = 'SELECT forum.content, forum.title, forum.postID FROM forumStar join forum on forumStar.postID = forum.postID WHERE forumStar.userID = ?';
    return await db.query(searchSQL, [userID]);
};
